import Vue from 'vue'
import Router from 'vue-router'
import JinEr from '@/components/JinEr'
import jiazuList from '@/components/jiazuList'
import jiazuRoomId from '@/components/jiazuRoomId'
import syRecord from '@/components/syRecord'
import txRecord from '@/components/txRecord'
import shengqing_know from '@/components/shengqing_know'
import applicationSuccess from '@/components/applicationSuccess'
import syRecordDetails from '@/components/syRecordDetails'

Vue.use(Router)

export default new Router({
    routes: [{
            path: '/',
            name: 'JinEr',
            component: JinEr,
            meta: {
                title: '我的收益'
            }
        }, {
            path: '/jiazuList',
            name: 'jiazuList',
            component: jiazuList,
            meta: {
                title: '家族列表'
            }
        }, {
            path: '/jiazuList/:roomId',
            name: 'jiazuRoomId',
            component: jiazuRoomId,
            meta: {
                title: '家族管理'
            }
        }, {
            path: '/syRecord',
            name: 'syRecord',
            component: syRecord,
            meta: {
                title: '收益记录'
            }
        },
        {
            path: '/syRecord/:month/:day',
            name: 'syRecordDetails',
            component: syRecordDetails,
            meta: {
                title: '收益记录'
            }
        }, {
            path: '/txRecord',
            name: 'txRecord',
            component: txRecord,
            meta: {
                title: '提现记录'
            }
        }, {
            path: '/shengqing_know',
            name: 'shengqing_know',
            component: shengqing_know,
            meta: {
                title: '收益说明'
            }
        }, {
            path: '/applicationSuccess',
            name: 'applicationSuccess',
            component: applicationSuccess,
            meta: {
                title: '收益说明'
            }
        }
    ]
})